﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Servico.Bovespa.Parametro.Service.ServiceImplementation.Translator.BusinessEntityToDataContract
{
    public class ConfiguracaoOMM
    {

        #region Métodos

        /// <summary>
        /// Traduz de BusinessEntity.MonitorOMMConfiguracaoCliente para DataContract.Response.MonitorOMMConfiguracaoClienteResponse
        /// </summary>
        /// <param name="to"></param>
        /// <returns></returns>
        public DataContract.Response.MonitorOMMConfiguracaoClienteResponse ToMonitorOMMConfiguracaoClienteResponse(BusinessEntity.MonitorOMMConfiguracaoCliente from)
        {
            //
            DataContract.Response.MonitorOMMConfiguracaoClienteResponse to = null;

            if (from == null)
                return null;

            to = new DataContract.Response.MonitorOMMConfiguracaoClienteResponse();
            to.TcpServerPort = from.TcpServerPort;
            to.TcpServerHostName = from.TcpServerHostName;

            return to;
        }

        #endregion
    }
}
